//
//  XZCustomCamera.h
//  XZRun
//
//  Created by 何典钊 on 2017/3/13.
//  Copyright © 2017年 hedianzhao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface XZCustomCamera : NSObject

- (instancetype)initWithPerView:(UIView *)perview;

- (void)start;

- (void)stop;

- (void)changeCamera;

- (void)captureImageCompletion:(void(^)(UIImage *image))completion errorCallback:(void(^)(NSError *error))errorCallback;

@end
